package com.shiguiwu.springmybatis.designpattern.bridge;

/**
 * @description: 测试
 * 定义：将抽象化和实现化解耦，使他们可以独立的扩展
 * @author: stone
 * @date: Created by 2021/3/5 12:19
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.bridge
 */
public class BridgeTests {

    public static void main(String[] args) {
        Bank bank = new ICBCBank(new DepositAccount());
        Bank bank1 = new ICBCBank(new SavingAccount());
        Account account = bank.openAccount();
        account.showAccountType();


    }
}
